
LOCAL_SRCS               += $(filter-out $(exclude_srcs),$(wildcard *.c))
LOCAL_SRCS               += $(filter-out $(exclude_srcs),$(wildcard *.cpp))
LOCAL_OBJS               = $(notdir $(patsubst %.cpp,%.o, $(notdir $(patsubst %.c,%.o, $(LOCAL_SRCS)))))
LOCAL_TARGET		 = libmpeg_test_main
EXTRALIB		 = -lm


$(warning $(LOCAL_OBJS))

INCLUDE += -I../include
LIB 	+= -L../debug.linux/ -lmpeg

INCLUDE += -I../../libflv/include
LIB 	+= -L../../libflv/debug.linux/ -lflv


INCLUDE += -I../../libmov/include
LIB 	+= -L../../libmov/debug.linux/ -lmov

all:$(LOCAL_TARGET) $(LOCAL_OBJS)
	@echo   "\033[1;31mall compiled job finished!\033[0m"
	
$(LOCAL_TARGET):$(LOCAL_OBJS)
	g++  -std=c++11 $(INCLUDE)  $(CPPFLAGS) $(CFLAGS) $(LOCAL_OBJS)  $(LIBS)   $(LIB)  -g -o $@  $(EXTRALIB)
%.o:%.c
	gcc    $(INCLUDE) $(CFLAGS)   -g -c $<  
%.o:%.cpp
	g++    $(INCLUDE) $(CFLAGS)   -g -c $< 
clean:
	rm -rf $(LOCAL_TARGET) *.o *.aac *.h264 *.h265
